#pragma once

#include "TimeDisplay.h"
#include "cstTime.h"

class CFontFactory;
class CMinTimeDisplay :public CTimeDisplay
{
	DECLARE_DYNAMIC(CMinTimeDisplay)

public:
	CMinTimeDisplay();
	~CMinTimeDisplay() override;

protected:
	DECLARE_MESSAGE_MAP()
public:
	void setTextColor(COLORREF clr);
	bool setTime(int h, int m, int s);
	bool setNA();
protected:
	CFontFactory *m_fFactory;
	COLORREF clrText;
	stNumBitmap nmTime[11];	//0-9 :
	CPoint nmTimePos[11];
	CRect numRect[8], numRectNA;
	intptr_t numIndex[8];
	cst_Time time;
	bool displayChanged, isNA;
	HBITMAP hBitmapNA;

	void drawOut(intptr_t id, intptr_t n);
};
